import request from '@/utils/request'

// 查询顾客列表
export function listCustomers(query) {
  return request({
    url: '/cs/Customers/list',
    method: 'get',
    params: query
  })
}

// 查询顾客详细
export function getCustomers(customerID) {
  return request({
    url: '/cs/Customers/' + customerID,
    method: 'get'
  })
}

// 新增顾客
export function addCustomers(data) {
  return request({
    url: '/cs/Customers',
    method: 'post',
    data: data
  })
}

// 修改顾客
export function updateCustomers(data) {
  return request({
    url: '/cs/Customers',
    method: 'put',
    data: data
  })
}

// 删除顾客
export function delCustomers(customerID) {
  return request({
    url: '/cs/Customers/' + customerID,
    method: 'delete'
  })
}
